package com.bjpowernode.springboot.filter;

import javax.servlet.*;
import java.io.IOException;

public class    MyFilter implements Filter {

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("---------------您已进入过滤器2！--------------");
        long start = System.currentTimeMillis();
        filterChain.doFilter(servletRequest,servletResponse);
        System.out.println("Execute cost="+(System.currentTimeMillis() - start));
    }


}

